package dao;

import model.Store;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public interface StoresManagement {
    boolean alterStore(long storeID, Store target);

    int closeStoreByCreator(long creatorID);

    boolean withdrawalByStore(long storeId, BigDecimal cash);

    boolean withdrawalByStore(long storeId);

    BigDecimal withdrawalByCreator(long uId);

    int closeStore(long storeID);

    List<Store> findAll(int pageSize, int page);

    List<Store> findByTime(LocalDateTime begintime, LocalDateTime endtime);

    List<Store> findByCreator(long creatorUId);

    Store findById(long storeId);

    Long openStore(long creatorID, String storeName, String storePictures);
}
